﻿Imports DTO
Imports DAO
Public Class NhanVienBUS
    Public Function TimKiem(ByVal hsCrt As NhanVienCRT) As DataTable
        Dim dao As New NhanVienDAO()
        Return dao.TimKiem(hsCrt)
    End Function

    Public Function CapNhatNhanVien(ByVal sql As String) As Integer
        Dim dao As New NhanVienDAO()
        Return dao.CapNhatNhanVien(sql)
    End Function

    Public Function ThemNhanVien(ByVal sql As String) As Integer
        Dim dao As New NhanVienDAO()
        Return dao.ThemNhanVien(sql)
    End Function

    Public Function LayDSNhanVien() As List(Of NhanVienDTO)
        Dim dao As New NhanVienDAO()
        Return dao.LayDSNhanVien()
    End Function

    Public Function LayDSNhanVien_ThuThu() As List(Of NhanVienDTO)
        Dim dao As New NhanVienDAO()
        Return dao.LayDSNhanVien_ThuThu()
    End Function

    Public Function LayDSNhanVien_ThuQuy() As List(Of NhanVienDTO)
        Dim dao As New NhanVienDAO()
        Return dao.LayDSNhanVien_ThuQuy()
    End Function

    Public Function LayDSNhanVien_ThuKho() As List(Of NhanVienDTO)
        Dim dao As New NhanVienDAO()
        Return dao.LayDSNhanVien_ThuKho()
    End Function
End Class
